#define  _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"
void test()
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	StackPush(&s, 4);
	StackPush(&s, 5);
	StackPush(&s, 6);
	while (!StackEmpty(&s))
	{
		printf("%d ", StackTop(&s));
		StackPop(&s);
	}
	StackDestory(&s);
}

#include "Queue.h"
void test2()
{
	QNode q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 4);
	QueuePush(&q, 6);
	QueuePush(&q, 8);
	QueuePush(&q, 9);
	QueuePush(&q, 10);
	QueuePush(&q, 12);
	while (!QueueEmpty(&q))
	{
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}
	QueueDestory(&q);
}

int main()
{
	test();
	test2();
	return 0;
}